package com.yizhuoyan.his.ao;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.time.LocalDateTime;

/**
 * 中草药处方需要修改的参数对象
 */
@Data
public class DocHerbalPrescriptionAo {
    //挂号ID
    @NotBlank(message = "挂号ID不能为空")
    @Pattern(regexp = "^[\\d]+$",message = "挂号id格式错误")
    private long registrationRecordId;
    //开立医生ID
    @NotBlank(message = "开立医生ID不能为空")
    private long createDoctorId;
    //病例ID
    @NotBlank(message = "病号ID不能为空")
    @Pattern(regexp = "^[\\d]+$",message = "病历id格式错误")
    private long medicalRecordId;
    //药品名称
    private String drugsName;
    //处方名称
    private String prescriptionName;
    //处方状态
    private Integer state;
    //处方类型
    private String prescriptionType;
    //付数
    @NotBlank(message = "付数不可为空")
    private Integer payNumber;
    //频次
    @NotBlank(message = "频次不可为空")
    private String frequency;
    //治法
    private String therapy;
    //用法
    @NotBlank(message = "用法不可为空")
    private String usageWay;
    //治法详细
    private String therapyDetailed;
    //医嘱
    private String advice;
    //脚注
    private String footnote;
    //用量
    private String dosage;
}
